# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=qt-jdenticon
pkgver=0.3.1
pkgrel=0
pkgdesc="Qt5 / C++14 Port of Jdenticon"
url="https://github.com/Nheko-Reborn/qt-jdenticon"
arch="all"
license="MIT"
makedepends="qt5-qtbase-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Nheko-Reborn/qt-jdenticon/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests

build() {
	qmake
	make
}

package() {
	make INSTALL_ROOT="$pkgdir" install

	install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}

sha512sums="
c9ff2b262aa146bb2d45ba1a58210afb7fbad4550cc69be0317562e1f0d9fbae071c337da9f39fbdc1c24c8bf273cd5baeec66286e0885feca703bfc0189a7bd  qt-jdenticon-0.3.1.tar.gz
"
